package com.calculate.entity;

import java.util.Date;

public class Calculate {
	private double num1;
	private double num2;
	private double result;
	private Date time;

	public Calculate() {
		super();
	}

	public Calculate(double num1, double num2, double result, Date time) {
		super();
		this.num1 = num1;
		this.num2 = num2;
		this.result = result;
		this.time = time;
	}

	public double getNum1() {
		return num1;
	}

	public void setNum1(double num1) {
		this.num1 = num1;
	}

	public double getNum2() {
		return num2;
	}

	public void setNum2(double num2) {
		this.num2 = num2;
	}

	public double getResult() {
		return result;
	}

	public void setResult(double result) {
		this.result = result;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	@Override
	public String toString() {
		return "CalcHistory [num1=" + num1 + ", num2=" + num2 + ", result="
				+ result + ", time=" + time + "]";
	}

}
